home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / Pdmod / modules / devices / netinfo.m < prev    next >
Encoding:
Text File  |  2002-10-28  |  2.2 KB  |  80 lines

  1. /*
  2. **      $Filename: devices/netinfo.h $
  3. **      $Release$
  4. **      $Revision: 3.1 $
  5. **      $Date: 1994/01/24 07:48:28 $
  6. **
  7. **      AmiTCP/IP netinfo.device interface for 32 bit C compilers
  8. **
  9. **      Copyright © 1993 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
  10. **                  Helsinki University of Technology, Finland.
  11. */
  12. MODULE  'exec/io'
  13.  
  14. #define NETINFONAME  'AmiTCP:devs/netinfo.device'
  15.  
  16. /*
  17.  * Modified IOStdReq
  18.  */
  19.  
  20. OBJECT NetInfoReq
  21.         Message:Message,
  22.         Device:PTR TO Device,    /* device node pointer  */
  23.         Unit:PTR TO Unit,        /* unit (driver private) */
  24.         Command:UWORD,           /* device command */
  25.         Flags:UBYTE,
  26.         Error:BYTE,              /* error or warning num */
  27.         Actual:ULONG,            /* actual number of bytes transferred */
  28.         Length:ULONG,            /* requested number bytes transferred*/
  29.         Data:PTR,                /* points to data area */
  30.         Offset:ULONG             /* search criteria */
  31.  
  32. /*
  33.  * NetInfo units
  34.  */
  35.  
  36. #define NETINFO_PASSWD_UNIT     0
  37. #define NETINFO_GROUP_UNIT      1
  38. #define NETINFO_UNITS           2
  39.  
  40. /* 
  41.  * Non-standard commands
  42.  */
  43.  
  44. #define NI_GETBYID     (CMD_NONSTD+0)
  45. #define NI_GETBYNAME   (CMD_NONSTD+1)
  46. #define NI_MEMBERS     (CMD_NONSTD+2)
  47. #define NI_END         (CMD_NONSTD+3)
  48.  
  49. /*
  50.  * Non-standard error codes (same as in the BSD errno)
  51.  */
  52.  
  53. #define NIERR_NOTFOUND       2
  54. #define NIERR_TOOSMALL       7
  55. #define NIERR_NOMEM          12
  56. #define NIERR_ACCESS         13
  57. #define NIERR_NULL_POINTER   14
  58. #define NIERR_INVAL          22
  59.  
  60. /* The passwd structure */
  61.  
  62. OBJECT NetInfoPasswd
  63.         name:PTR TO UBYTE,      /* Username */
  64.         passwd:PTR TO UBYTE,    /* Encrypted password */
  65.         uid:LONG,               /* User ID */
  66.         gid:LONG,               /* Group ID */
  67.         gecos:PTR TO UBYTE,     /* Real name etc */
  68.         dir:PTR TO UBYTE,       /* Home directory */
  69.         shell:PTR TO UBYTE      /* Shell */
  70.  
  71. /* The group structure */
  72.  
  73. OBJECT NetInfoGroup
  74.         name:PTR TO UBYTE,          /* Group name.  */
  75.         passwd:PTR TO UBYTE,        /* Password.    */
  76.         gid:LONG,                   /* Group ID.    */
  77.         mem:PTR TO PTR TO UBYTE     /* Member list. */
  78.  
  79.  
  80.